package com.he.DesignPatterns.visit;

/**
 * @description: 具体元素角色类
 * @Author: HCL
 * @Date: 2024/10/11 16:40
 */
public class Dog implements Animal {
    @Override
    public void accept(Person person) {
        person.feed(this);
        System.out.println("好好吃，汪汪汪");
    }
}
